﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HAMath
{
    [Serializable]
    public class SearchEllipsoid : ICloneable
    {

        public SearchEllipsoid()
        { 
        }


        private double _searchRadius = 1000;

        /// <summary>
        /// 搜索半径
        /// </summary>
        public double SearchRadius
        {
            get { return _searchRadius; }
            set 
            {
                if (value < 0)
                {
                    value = 0;
                }
                _searchRadius = value;
            }
        }


        private double _anisotropyX = 1.0;

        /// <summary>
        /// 各项异性。X方向
        /// </summary>
        public double AnisotropyX
        {
            get { return _anisotropyX; }
            set { _anisotropyX = value; }
        }


        private double _anisotropyY = 1.0;

        /// <summary>
        /// 各项异性。Y方向
        /// </summary>
        public double AnisotropyY
        {
            get { return _anisotropyY; }
            set { _anisotropyY = value; }
        }


        public object Clone()
        {
            return this.MemberwiseClone();
        }

    }
}
